<html>
	<head>
		<title>test ajax.post</title>
		<script src="http://lib.sinaapp.com/js/jquery/1.9.1/jquery-1.9.1.min.js"></script>
	</head>
	<body>
		<script type="text/javascript">
			var testdata = {
				"user":"root"
			}
			$.ajax({
				type: 'POST',
				url: "http://127.0.0.1:8080/CloudFlag-IOS/index.php/device/index",
				data: testdata,
				success: function(data){
					console.log(data);
				}
			});
		</script>
	</body>
</html>